package com.example.demo.controller.gisController;

import com.example.demo.common.result.Result;
import com.example.demo.service.impl.gisImpl.PipeImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pipe")
public class pipeController {
    @Autowired
    PipeImpl pipeImpl;
    @PostMapping("/GroupByType")
    public Result GroupByType( ){
        return  pipeImpl.getPipeLineGroupByType();
    }

    @PostMapping("/GroupBySteet")
    public Result GroupBySteet( ){
        return  pipeImpl.getPipeLineGroupBySteet();
    }

    @PostMapping("/GroupByOwner")
    public Result GroupByOwner( ){
        return  pipeImpl.getPipeLineGroupByOwner();
    }

    @PostMapping("/GroupBySubsidiaryItem")
    public Result GroupBySubsidiaryItem( ){
        return  pipeImpl.getPipePointGroupBySubsidiaryItem();
    }

}
